package com.wenyl.juc.thread.shopTest;

import lombok.Data;

/**
 * @author Swimming Dragon
 * @description: TODO
 * @date 2024年11月07日 11:49
 */
@Data
public class User extends Thread{
    private String username;
    private Shop shop;
    public User(String name,Shop shop){
        this.username = name;
        this.shop = shop;
    }
    @Override
    public void run(){
        this.shop.userShopping(username);
    }
}
